package com.woniu.bank.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 新增协议需要的所有数据
 * @author 晨星
 * @date 2023/01/09/17:57
 */
@Data
@ApiModel(description = "新增协议需要的所有数据")
public class NewAgreementDTO {

    @ApiModelProperty(value = "联保小组编号")
    private String groupNo;

    @ApiModelProperty(value = "联保协议生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jointInsuranceStartDate;

    @ApiModelProperty(value = "联保协议到期日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date coInsuranceExpirationDate;

    @ApiModelProperty(value = "协议签订日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date agreementSigningDate;

    @ApiModelProperty(value = "登记人")
    private String registrant;

    @ApiModelProperty(value = "登记网点")
    private String registrationNetwork;

    @ApiModelProperty(value = "协议状态")
    private String agreementStatus;
}
